package com.kl.feign;

import com.kl.domain.LogisticsStoreDTO;
import com.kl.domain.StaffDTO;
import com.kl.em.ConstantEnum;
import com.kl.em.Result;
import com.kl.feign.fallback.SameCityServiceFeignFallback;
import com.kl.feign.fallback.StaffServiceFeignFallback;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "kunlun-access-control-service-b",fallback = StaffServiceFeignFallback.class)//服务名找项目
public interface StaffServiceFeign {
    //员工id查询接口
    @GetMapping("/staff/selectByStaffId")
    Result<StaffDTO> selectByStaffId(@RequestParam("staffid")Long staffid);

    //派送员查询接口
    @GetMapping("/staff/selectByPosition")
    Result<List<StaffDTO>> selectByPosition();

    //根据城市查询同城员工
    @GetMapping("/staff/findSameCityStaff")
    Result<List<Long>> findSameCityStaff(@RequestParam("logList")List<Long> logList);
}
